/**
 * ui.h
 * Description: User interface header file.
 * Authors: Hamish Cumming, Brian Thorne 2008
 */

#ifndef UI_H
#define UI_H

#include "global.h"



/* Function Prototypes */

/**
 * Initialise the user interface module
 */
void ui_init(void);

/**
 * Called from joystick.
 * @param The direction to joystick was pressed
 */
void ui_move(direction_t direction);

/**
 * Moves a string left(0) or right(1)
 * @param The direction to move the string
 */
void ui_string_move(direction_t direction);

/**
 * Writes a stroing to the display buffer
 * @param string The string to display
 */
void ui_message(const char *string);

/**
 * Writes a time value to the display buffer
 * @param time The time to be displayed
 */
void display_time(time_t time);

/**
 * The display task.  Deactivates on completion
 * @return task exit code
 */
uint8_t display_task(void);

#endif
